﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="VisitHistory.aspx.cs" Inherits="Wicresoft.RDW.Report.VisitHistory"
    EnableViewStateMac="true" %>

<%@ Register Src="../UserControls/PagerControl.ascx" TagName="PagerControl" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="main_title">
        <h2>
            <%=Resources.NameResource.title_visitHistory%></h2>
    </div>
    <div class="visitforecast">
        <div class="visitforecastContent2 HistoryApplicationContent">
        <asp:GridView ID="gvHistory" runat="server" AutoGenerateColumns="false" DataKeyNames="VisitRequestId"
            AllowPaging="true" OnRowDataBound="gvHistory_RowDataBound" OnRowUpdating="gvHistory_RowUpdating"
            Width="100%" HeaderStyle-CssClass="dcTableHeader" RowStyle-CssClass="dcTableAlternatingItem"
            AlternatingRowStyle-CssClass="dcTableItem">
            <AlternatingRowStyle CssClass="dcTableItem"></AlternatingRowStyle>
            <Columns>
                <asp:BoundField ItemStyle-Width="40" />
                <asp:BoundField ItemStyle-Width="130" />
                <asp:BoundField ItemStyle-Width="130"/>
                <asp:BoundField ItemStyle-Width="130" />
                <asp:BoundField ItemStyle-Width="185" />
                <asp:BoundField DataField="CompanyName" ItemStyle-Width="285"/>
                <asp:BoundField DataField="PersonNum" ItemStyle-Width="135" />
                <asp:BoundField ItemStyle-Width="180" />
                <asp:TemplateField ShowHeader="true" ItemStyle-Width="150">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtnRedirectAction" runat="server" CausesValidation="False" CommandName="Update"
                            Text="<%#Resources.NameResource.LinkButton_ToSend%>" CssClass="CommandButton"></asp:LinkButton>
                    </ItemTemplate>
                    <ItemStyle></ItemStyle>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <table>
                    <tr class="dcTableHeader">
                        <th width="40">
                            <%=Resources.NameResource.No%>
                        </th>
                        <th width="140">
                            <%=Resources.NameResource.Visit_Date%>
                        </th>
                        <th width="140">
                            <%=Resources.NameResource.Location_Name%>
                        </th>
                        <th width="140">
                            <%=Resources.NameResource.Lab_Name%>
                        </th>
                        <th width="185">
                            <%=Resources.NameResource.Visit_Linkman%>
                        </th>
                        <th width="285">
                            <%=Resources.NameResource.Visit_CompanyName%>
                        </th>
                        <th width="135">
                            <%=Resources.NameResource.Visit_PersonNum%>
                        </th>
                        <th width="180">
                            <%=Resources.NameResource.VisitRequest_VisitorType%>
                        </th>
                        <th width="150">
                            <%=Resources.NameResource.Action%>
                        </th>
                    </tr>
                </table>
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
    </div>
    <uc1:PagerControl ID="PagerControll" runat="server" />
</asp:Content>
